Skip to content

Make expanded property reference limit configurable - #289

Merged
mahach666 merged 1 commit into
mainfrom
codex/issue-288-property-limit
Nov 23, 2026
Merged

mahach666 merged 1 commit into
mainfrom
codex/issue-288-property-limit

Conversation

@mahach666

Copy link
Copy Markdown
Collaborator

Fixes #288.

Changes

  • Add --max-property-refs <count> and NwcReaderOptions.MaxExpandedPropertyReferences so callers can raise the limit for large DbCache scene trees. The default stays at 134,217,728, and the reader checks the configured limit before expanding the tree.
  • Apply the limit to synchronous and asynchronous document reads, assembly inputs, and CLI diff baselines. Reject zero, negative, and out-of-range CLI arguments.

Verification

  • A synthetic NWD with 134,217,729 property and tab references exits with code 3 at the default and code 0 with --max-property-refs 134217729.
  • Release tests passed on .NET 8 and .NET 10. The private Navisworks file from the issue was unavailable.
  • Formatting verification and the native-only build passed.

@mahach666
mahach666 merged commit 0d29589 into main Nov 23, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Real-world NWD fails: "expanded tree exceeds 134217728 property references" — please make the limit configurable

1 participant